<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>列表</a></li>
			<li class=""><a href="add">添加</a></li>

		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('manage/index')}">
			名称：
			<input class="form-control" type="text" name="keyword" value="{:input('keyword')}" placeholder="请输入商品名称">
			<input type="submit" class="btn btn-primary" value="搜索">
			<a class="btn btn-danger" href="{:url('manage/index')}">清空</a>
		</form>
		<form method="post" class="js-ajax-form" >
			<div class="row">
				<table class="table table-hover table-bordered table-striped">
					<thead>
					<tr>
						<th>ID</th>
						<th>名称</th>
						<th>token</th>
						<th>备注</th>
						<th>{:lang('ACTIONS')}</th>
					</tr>
					</thead>
					<tbody>
					<foreach name="list" item="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.name}</td>
							<td>{$vo.token}</td>
							<td>{$vo.mark}</td>
							<td>
								<a class="btn btn-xs btn-primary" href='{:url("manage/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
								<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('manage/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
								<a class="btn btn-xs btn-success" href="{:url('manage/sync_storage',array('id'=>$vo['id']))}">同步仓库</a>
								<a class="btn btn-xs btn-warning" href="javascript:openIframeLayer('sync_goods?id={$vo.id}', '{$vo.name}-商品一览', {area: ['80%','80%']})">同步商品</a>
							</td>
						</tr>
					</foreach>
					</tbody>
				</table>
				<div class="pagination">{$list->render()}</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>